package connections;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionsFactory {

public static Connection getConnection() throws SQLException{
	try{
		Class.forName("org.postgresql.Driver");
		return DriverManager.getConnection("jdbc:postgresql://localhost:5432/sig", "postgres", "admin");
	}catch (ClassNotFoundException e) {
		throw new SQLException(e.getMessage());
	}
}
	
}
